<!--{template header}-->

<!--{if $_GET[op] == 'delete'}-->

<h1>删除足迹</h1>
<a href="javascript:hideMenu();" class="float_del" title="关闭">关闭</a>
<div class="popupmenu_inner">
<form method="post" action="cp.php?ac=track&op=delete&id=$id">
	<p>确定删除指定的足迹吗？</p>
	<p class="btn_line">
		<input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
		<input type="hidden" name="deletesubmit" value="true" />
		<input type="submit" name="btnsubmit" value="确定" class="submit" />
	</p>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
</div>

<!--{else}-->

<script language="javascript" src="image/editor/editor_function.js"></script>
<script language="javascript" src="source/script_track.js"></script>

<!--{if $topic}-->
	<!--{template cp_topic_menu}-->
<!--{else}-->
<div class="tabs_header">
	<ul class="tabs">
		<!--{if $track[id]}-->
		<li class="active"><a href="cp.php?ac=track&id=$track[id]"><span>修改足迹</span></a></li>
		<!--{/if}-->
		<li<!--{if empty($track[id])}--> class="active"<!--{/if}-->><a href="cp.php?ac=track"><span>添加足迹</span></a></li>
		<li><a href="space.php?uid=$space[uid]&do=track&view=me"><span>返回我的足迹</span></a></li>
	</ul>
</div>
<!--{/if}-->

<div class="c_form">
	<style type="text/css">
		@import url(template/default/track.css);
		.userData {behavior:url(#default#userdata);}
	</style>
	<form method="post" action="cp.php?ac=track&id=$track[id]" enctype="multipart/form-data">
		<div style="padding-bottom: 10px;" class="mt10">
			<strong class="f13">添加我去过的城市</strong>
		</div>
		<div class="hn_tt w100 tar">城市名称：</div>
		<div class="zh_i_ct" id="residecitybox" >
			<script type="text/javascript" src="source/script_city.js"></script>
			<script type="text/javascript">
			<!--
			showprovince('resideprovince', 'residecity', '$track[province]', 'residecitybox');
			showcity('residecity', '$track[city]', 'resideprovince', 'residecitybox');
			//-->
			</script>
		</div>
		<div class="c"></div>
		<!-- 出行目的 -->
		<div id="mygoal">
			<div class="hn_tt w100 tar">出行目的：</div>
			<div class="zh_i_ct">
				<span class="l">
					<select onchange="reason_change(this)" class="w120" name="reason" id="reason">
						<option value=""></option>
						<option value="旅游"  <!--{if $track[reason] == '旅游'}--> selected<!--{/if}-->>旅游</option>
						<option value="念书" <!--{if $track[reason] == '念书'}--> selected<!--{/if}-->>念书</option>
						<option value="商务旅行" <!--{if $track[reason] == '商务旅行'}--> selected<!--{/if}-->>商务旅行</option>
						<option value="工作" <!--{if $track[reason] == '工作'}--> selected<!--{/if}-->>工作</option>
						<option value="出差" <!--{if $track[reason] == '出差'}--> selected<!--{/if}-->>出差</option>
						<option value="开会" <!--{if $track[reason] == '开会'}--> selected<!--{/if}-->>开会</option>
						<option value="访亲探友" <!--{if $track[reason] == '访亲探友'}--> selected<!--{/if}-->>访亲探友</option>
						<option value="其他" <!--{if $track[reason] == '其他'}--> selected<!--{/if}-->>其他</option>
					</select>
				</span>
			</div>
		</div>
		<div class="c"></div>
		<!-- 交通工具 -->
		<div <!--{if empty($track[vehicle])}-->style="display: none;"<!--{/if}--> id="d_vehicle">
			<div class="hn_tt w100 tar">交通工具：</div>
			<div class="zh_i_ct">
			<select onchange="vehicle_change(this)" class="w120" name="vehicle" id="vehicle">
				<option value=""></option>
				<option value="巴士" <!--{if $track[vehicle] == '巴士'}--> selected<!--{/if}-->>巴士</option>
				<option value="自驾车" <!--{if $track[vehicle] == '自驾车'}--> selected<!--{/if}-->>自驾车</option>
				<option value="火车" <!--{if $track[vehicle] == '火车'}--> selected<!--{/if}-->>火车</option>
				<option value="飞机" <!--{if $track[vehicle] == '飞机'}--> selected<!--{/if}-->>飞机</option>
				<option value="轮船" <!--{if $track[vehicle] == '轮船'}--> selected<!--{/if}-->>轮船</option>
				<option value="自行车" <!--{if $track[vehicle] == '自行车'}--> selected<!--{/if}-->>自行车</option>
				<option value="徒步" <!--{if $track[vehicle] == '徒步'}--> selected<!--{/if}-->>徒步</option>
			</select>
			</div>
		</div>
		<div class="c"></div>
		<!-- 港口 -->
		<div <!--{if empty($track[ports])}-->style="display: none;"<!--{/if}--> id="d_ports">
			<div class="hn_tt w100 tar">港口：</div>
			<div class="zh_i_ct">
				<input type="text" class="t_input" style="width:200px;" value="$track[ports]" name="ports" id="ports">
			</div>
		</div>
		<div class="c"></div>
		<div class="hn_tt w100 tar">去的时间：</div>
		<div class="zh_i_ct">
			<span class="it_s">
				<input type="text" style="width:200px;" class="t_input" value="$track[time]" name="time" id="time">
			</span>
		</div>
		<div class="c"></div>
		<div class="hn_tt w100 tar">我的印象：</div>
		<div class="zh_i_ct">
			<a id="doodleBox" href="magic.php?mid=doodle&showid=blog_doodle&target=uchome-ttHtmlEditor&from=editor" style="display:none"></a>
			<textarea class="userData" name="review" id="uchome-ttHtmlEditor" style="height:100%;width:100%;display:none;border:0px">$track[review]</textarea>
			<iframe src="editor.php?charset=$_SC[charset]&allowhtml=$allowhtml&doodle=<!--{if isset($_SGLOBAL[magic][doodle])}-->1<!--{/if}-->" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:100%;border: 1px solid #C5C5C5;" height="240"></iframe>
		</div>
		<div class="c"></div>

		<table cellspacing="4" cellpadding="4" width="100%" class="infotable">
			<!--{if $track['uid'] && $track['uid']!=$_SGLOBAL['supe_uid']}-->
			<!--{eval $selectgroupstyle='display:none';}-->
			<tbody style="display:none;">
			<!--{/if}-->
			<tr>
				<th width="95">隐私设置：</th>
				<td>
					<select name="friend" onchange="passwordShow(this.value);">
						<option value="0"$friendarr[0]>全站用户可见</option>
						<option value="1"$friendarr[1]>全好友可见</option>
						<option value="2"$friendarr[2]>仅指定的好友可见</option>
						<option value="3"$friendarr[3]>仅自己可见</option>
						<option value="4"$friendarr[4]>凭密码查看</option>
					</select>
					<span id="span_password" style="$passwordstyle">密码:<input type="text" name="password" value="$track[password]" size="10" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')"></span>
				</td>
			</tr>
			<!--{if $track['uid'] && $track['uid']!=$_SGLOBAL['supe_uid']}--></tbody><!--{/if}-->
			<tbody id="tb_selectgroup" style="$selectgroupstyle">
			<tr>
				<th width="95">指定好友：</th>
				<td><select name="selectgroup" onchange="getgroup(this.value);">
					<option value="">从好友组选择好友</option>
					<!--{loop $groups $key $value}-->
					<option value="$key">$value</option>
					<!--{/loop}-->
					</select> 多次选择会累加到下面的好友名单</td>
			</tr>
			<tr>
				<th>&nbsp;</th>
				<td>
				<textarea name="target_names" id="target_names" style="width:85%;" rows="3">$track[target_names]</textarea>
				<br>(可以填写多个好友名，请用空格进行分割)</td>
			</tr>
			</tbody>
			
			<!--{if checkperm('seccode')}-->
			<!--{if $_SCONFIG['questionmode']}-->
			<tr>
				<th style="vertical-align: top;">请回答验证问题</th>
				<td>
					<p><!--{eval question();}--></p>
					<input type="text" id="seccode" name="seccode" value="" size="15" class="t_input" />
				</td>
			</tr>
			<!--{else}-->
			<tr>
				<th style="vertical-align: top;">请填写验证码</th>
				<td>
					<script>seccode();</script>
					<p>请输入上面的4位字母或数字，看不清可<a href="javascript:updateseccode()">更换一张</a></p>
					<input type="text" id="seccode" name="seccode" value="" size="15" class="t_input" />
				</td>
			</tr>
			<!--{/if}-->
			<!--{/if}-->
			<input type="hidden" name="makefeed" id="makefeed" value="1" />
			<tr>
				<th width="95">动态选项：</th>
				<td>
					<input type="checkbox" name="makefeed" id="makefeed" value="1"<!--{if ckprivacy('track', 1)}--> checked<!--{/if}-->> 产生动态 (<a href="cp.php?ac=privacy#feed" target="_blank">更改默认设置</a>)
				</td>
			</tr>
		</table>
		<input type="hidden" name="blogsubmit" value="true" />
		<input type="button" id="blogbutton" name="blogbutton" value="提交发布" onclick="validate(this);" style="display: none;" />
		<input type="hidden" name="topicid" value="$_GET[topicid]" />
		<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	</form>

	<!--{if !$_SGLOBAL[inajax] && (!$blog['uid'] || $blog['uid']==$_SGLOBAL['supe_uid'])}-->
	<table cellspacing="4" cellpadding="4" width="100%" class="infotable">
		<tr><th width="95">图&nbsp;&nbsp;&nbsp;&nbsp;片：</th><td>
		<input type="button" name="clickbutton[]" value="上传图片" class="button" onclick="edit_album_show('pic')">
		</td></tr>
	</table>
	<!--{/if}-->

	<table cellspacing="4" cellpadding="4" width="100%" id="uchome-edit-pic" class="infotable" style="display:none;">
		<tr>
			<th width="100">&nbsp;</th>
			<td>
				<strong>选择图片</strong>: 
				<table summary="Upload" cellspacing="2" cellpadding="0">
					<tbody id="attachbodyhidden" style="display:none">
						<tr>
							<td>
								<form method="post" id="upload" action="cp.php?ac=upload" enctype="multipart/form-data" target="uploadframe" style="background: transparent;">
									<input type="file" name="attach" style="border: 1px solid #CCC;" />
									<span id="localfile"></span>
									<input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true" />
									<input type="hidden" name="albumid" id="albumid" value="0" />
									<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
								</form>
							</td>
						</tr>
					</tbody>
					<tbody id="attachbody"></tbody>
				</table>
				<strong>存储相册</strong>: 
				<table cellspacing="2" cellpadding="0">
					<tr>
						<td>
							<select name="albumid" id="uploadalbum" onchange="addSort(this)">
								<option value="-1">请选择相册</option>
								<option value="-1">默认相册</option>
								<!--{loop $albums $value}-->
								<option value="$value[albumid]">$value[albumname]</option>
								<!--{/loop}-->
								<option value="addoption" style="color:red;">+新建相册</option>
							</select>
							<script src="source/script_upload.js" type="text/javascript"></script>
							<iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<table cellspacing="4" cellpadding="4" width="100%" class="infotable" id="uchome-edit-album" style="display:none;">
		<tr>
			<th width="100">&nbsp;</th>
			<td>
				选择相册: <select name="view_albumid" onchange="picView(this.value)">
					<option value="none">选择一个相册</option>
					<option value="0">默认相册</option>
					<!--{loop $albums $value}-->
					<option value="$value[albumid]">$value[albumname]</option>
					<!--{/loop}-->
				</select> (点击图片可以插入到内容中)
				<div id="albumpic_body"></div>
			</td>
		</tr>
	</table>
	<table cellspacing="4" cellpadding="4" width="100%" class="infotable">
		<tr>
			<th width="100">&nbsp;</th>
			<td>
			<input type="button" id="issuance" onclick="document.getElementById('blogbutton').click();" value="保存发布" class="submit" /></td>
		</tr>
	</table>
</div>

<!--{/if}-->
<!--{template footer}-->